<!DOCTYPE html>
<html>
<head>
<title>编辑角色</title>
<jsp:include page="../../include/header.jsp" />
</head>
<body class="">
<form action="base/role/role!update.action" method="post" class="form-horizontal" id="roleEditForm" class="">
	<input type="hidden" name="role.id" value="${role.id}" />
	<c:if test="${message!=null}">
	<div class="alert alert-success">
	    <i class="icon-info-sign icon-large"></i>
	    <button type="button" class="close" data-dismiss="alert">&times;</button>
	    ${message}
	</div>
	</c:if>
    <div class="control-group">
        <label class="control-label">角色名称</label>
        <div class="controls">
            <input type="text" name="role.roleKey" value="${role.roleKey}" />
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">角色代号</label>
        <div class="controls">
            <input type="text" name="role.name" value="${role.name}" />
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">角色描述</label>
        <div class="controls">
            <input type="text" name="role.description" value="${role.description}" />
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">角色类型</label>
        <div class="controls">
			<select id="roleTypes" name="role.roleType.id">
				<option value=""></option>
				<c:forEach var="roleType" items="${roleTypes}">
					<option value="${roleType.id}" <c:if test="${roleType.id eq role.roleType.id}">selected</c:if> >${roleType.name}</option>
				</c:forEach>
			</select>
        </div>
    </div>
	<div class="form-actions form-action-no-bg">
	    <button class="btn btn-success btn-small" type="submit">保存</button>
	    <button class="btn btn-success btn-small" type="reset">重置</button>
	</div>
</form>
</body>
</html>